package service;

import dao.goodsMapper;
import entity.goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UpdateGoodsService {

    @Autowired
    private goodsMapper goodsMapper;

    public boolean updateGoods(goods goods){
        int i = goodsMapper.updateByPrimaryKeySelective(goods);
        if(i > 0){
            return true;
        }
        return false;
    }
}
